package com.visitcqut.domain;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



/**
 * @program: visitcqut
 * @description: 校园实体类
 * @author: ATAO
 * @create: 2020-11-14 15:30
 **/


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Campus {

    /**
     * 校园编号
     */
    private Integer id;


    /**
     * 校园名称
     */
    private String name;


    /**
     * 校园构造方法
     * @param name
     */
    public Campus(String name){
        this.name = name;
    }


    /**
     * 重写toString输出校园信息
     * @return string
     */
    @Override
    public String toString() {
        return "Campus{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
